{{extend './base.html'}}
{{block 'title'}}用户页{{/block}}
{{block 'main'}}
<div>
    <table class="table table-striped">
        <thead>
            <th>id</th>
            <th>用户名</th>
            <th>昵称</th>
            <th>邮箱</th>
            <th>密码</th>
            <th colspan="2">操作</th>
        </thead>
        {{each data v i}}
        <tr>
            <td>{{v.id}}</td>
            <td>{{v.name}}</td>
            <td>{{v.nickname}}</td>
            <td>{{v.email}}</td>
            <td>{{v.password}}</td>
            <td><a href="/users/del/{{v.id}}" class="btn btn-primary">删除</a></td>
            <td><a href="/users/update/{{v.id}}" class="btn btn-primary">修改</a></td>
        </tr>
    {{/each}}
    </table>

    <nav>
        <a href="/users/add">添加</a>
    </nav>
</div>
{{/block}}